package ccrClasses.layer2;

import ccrClasses.ICcr;

public class Route implements ICcr {
	
	public final static String OPEN_TAG = "<Route>";

	public final static String CLOSE_TAG = "</Route>";
	
	private Text text;
	
	public Route(Text text) {
		super();
		this.text = text;
	}

	@Override
	public String constructCcrString() {
		return new String(OPEN_TAG + text.constructCcrString() + CLOSE_TAG);
	}

	/**
	 * @return the text
	 */
	public Text getText() {
		return text;
	}

	/**
	 * @param text the text to set
	 */
	public void setText(Text text) {
		this.text = text;
	}

}
